{% extends "index.html" %}

{% block assign_vars %}
{% set leo_title = config.title ~ " / " ~ section.title %}
{% endblock assign_vars %}

{% block content %}
<div class="post" style="margin-bottom: 1rem">
  <h1 class="post-title">{{ section.title }}</h1>
  {{ section.content | safe }}
</div>
 
{% for page in section.pages | reverse %}
<div class="post"  style="margin-bottom: 1rem">
  <h1 class="post-title">
    <a href="{{ page.permalink }}">
      {{ page.title }}
    </a>
  </h1>
  {% if page.date %}
  <span class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</span>
  {% endif %}
  {% if page.description %}
    {{page.description | safe}}
  {%endif %}
</div>
{% endfor %}
{% endblock content %}

